// 全局物品定义（扩展分类系统）
const ITEMS = [
    // === 原材料类 ===
    // 矿石类
    { name: '铁矿石', type: 'material', price: 15, category: '金属矿石', subCategory: '基础矿石', rare: 2 },
    { name: '铜矿石', type: 'material', price: 20, category: '金属矿石', subCategory: '基础矿石', rare: 2 },
    { name: '银矿石', type: 'material', price: 35, category: '金属矿石', subCategory: '稀有矿石', rare: 3 },
    { name: '金矿石', type: 'material', price: 50, category: '金属矿石', subCategory: '稀有矿石', rare: 4 },
    
    // 石材类
    { name: '花岗岩', type: 'material', price: 8, category: '石材类', subCategory: '建筑石材', rare: 1 },
    { name: '大理石', type: 'material', price: 12, category: '石材类', subCategory: '装饰石材', rare: 2 },
    { name: '石灰石', type: 'material', price: 6, category: '石材类', subCategory: '建筑石材', rare: 1 },
    { name: '板岩', type: 'material', price: 10, category: '石材类', subCategory: '屋顶石材', rare: 1 },
    
    // 木材类
    { name: '橡木', type: 'material', price: 8, category: '木材类', subCategory: '硬木', rare: 1 },
    { name: '松木', type: 'material', price: 6, category: '木材类', subCategory: '软木', rare: 1 },
    { name: '杉木', type: 'material', price: 7, category: '木材类', subCategory: '软木', rare: 1 },
    { name: '桦木', type: 'material', price: 9, category: '木材类', subCategory: '硬木', rare: 2 },
    
    // 皮革类
    { name: '牛皮', type: 'material', price: 15, category: '皮革类', subCategory: '厚皮革', rare: 2 },
    { name: '羊皮', type: 'material', price: 12, category: '皮革类', subCategory: '软皮革', rare: 2 },
    { name: '鹿皮', type: 'material', price: 18, category: '皮革类', subCategory: '优质皮革', rare: 2 },
    { name: '狼皮', type: 'material', price: 25, category: '皮革类', subCategory: '稀有皮革', rare: 3 },
    
    // 谷物类
    { name: '小麦', type: 'material', price: 5, category: '谷物类', subCategory: '主食谷物', rare: 1 },
    { name: '大麦', type: 'material', price: 6, category: '谷物类', subCategory: '酿酒谷物', rare: 1 },
    { name: '水稻', type: 'material', price: 7, category: '谷物类', subCategory: '主食谷物', rare: 1 },
    { name: '玉米', type: 'material', price: 4, category: '谷物类', subCategory: '饲料谷物', rare: 1 },
    
    // 鲜肉类
    { name: '猪肉', type: 'material', price: 12, category: '鲜肉类', subCategory: '家畜肉', rare: 1 },
    { name: '牛肉', type: 'material', price: 18, category: '鲜肉类', subCategory: '家畜肉', rare: 1 },
   { name: '羊肉', type: 'material', price: 15, category: '鲜肉类', subCategory: '家畜肉', rare: 1 },
    { name: '鸡肉', type: 'material', price: 8, category: '鲜肉类', subCategory: '禽肉', rare: 1 },
    { name: '鸭肉', type: 'material', price: 9, category: '鲜肉类', subCategory: '禽肉', rare: 1 },
    { name: '兔肉', type: 'material', price: 14, category: '鲜肉类', subCategory: '野味', rare: 2 },
    
    // 鲜鱼类
    { name: '鲈鱼', type: 'material', price: 10, category: '鲜鱼类', subCategory: '淡水鱼', rare: 1 },
    { name: '草鱼', type: 'material', price: 8, category: '鲜鱼类', subCategory: '淡水鱼', rare: 1 },
    { name: '鲤鱼', type: 'material', price: 9, category: '鲜鱼类', subCategory: '淡水鱼', rare: 1 },
    { name: '鲅鱼', type: 'material', price: 12, category: '鲜鱼类', subCategory: '海水鱼', rare: 2 },
    { name: '鲫鱼', type: 'material', price: 7, category: '鲜鱼类', subCategory: '淡水鱼', rare: 1 },
    { name: '鳕鱼', type: 'material', price: 15, category: '鲜鱼类', subCategory: '海水鱼', rare: 2 },
    
    // 鲜果类
    { name: '苹果', type: 'material', price: 3, category: '鲜果类', subCategory: '温带水果' },
    { name: '梨', type: 'material', price: 4, category: '鲜果类', subCategory: '温带水果' },
    { name: '桃', type: 'material', price: 5, category: '鲜果类', subCategory: '核果' },
    { name: '葡萄', type: 'material', price: 6, category: '鲜果类', subCategory: '浆果' },
    { name: '橙子', type: 'material', price: 7, category: '鲜果类', subCategory: '柑橘类' },
    { name: '香蕉', type: 'material', price: 8, category: '鲜果类', subCategory: '热带水果' },
    
    // 水资源
    { name: '生水', type: 'material', price: 1, category: '水资源', subCategory: '生水', quality: 'poor' },
    { name: '泉水', type: 'material', price: 3, category: '水资源', subCategory: '优质水', quality: 'good' },
    { name: '熟水', type: 'material', price: 2, category: '水资源', subCategory: '处理水', quality: 'excellent' },
    
    // === 成品类 ===
    // 熟食类
    { name: '炖肉', type: 'food', price: 25, nutrition: 50, category: '熟食类', subCategory: '肉类料理', portable: false },
    { name: '烤肉', type: 'food', price: 22, nutrition: 45, category: '熟食类', subCategory: '肉类料理', portable: false },
    { name: '肉干', type: 'food', price: 18, nutrition: 35, category: '熟食类', subCategory: '干制食品', portable: true },
    { name: '炖鱼', type: 'food', price: 20, nutrition: 40, category: '熟食类', subCategory: '鱼类料理', portable: false },
    { name: '鱼干', type: 'food', price: 15, nutrition: 30, category: '熟食类', subCategory: '干制食品', portable: true },
    { name: '面包', type: 'food', price: 8, nutrition: 30, category: '熟食类', subCategory: '面食', portable: true },
    { name: '蜜饯', type: 'food', price: 12, nutrition: 25, category: '熟食类', subCategory: '甜品', portable: true },
    
    // === 工具类 ===
    // 武器类
    { name: '铁剑', type: 'weapon', price: 80, category: '武器', subCategory: '近战武器', material: '铁', durability: 200, maxDurability: 200, repairable: true, maxRepairs: 3 },
    { name: '铜剑', type: '极weapon', price: 70, category: '武器', subCategory: '近战武器', material: '铜', durability: 150, maxDurability: 150, repairable: true, maxRepairs: 3 },
    { name: '铁斧', type: 'weapon', price: 60, category: '武器', subCategory: '近战武器', material: '铁', durability: 180, maxDurability: 180, repairable: true, maxRepairs: 3 },
    { name: '铜斧', type: 'weapon', price: 55, category: '武器', subCategory: '近战武器', material: '铜', durability: 130, maxDurability: 130, repairable: true, maxRepairs: 3 },
    { name: '弓箭', type: 'weapon', price: 60, category: '武器', subCategory: '远程武器', material: '木材', durability: 120, maxDurability: 120, repairable: true, maxRepairs: 2 },
    { name: '银剑', type: 'weapon', price: 120, category: '武器', subCategory: '近战武器', material: '银', durability: 250, maxDurability: 250, repairable: true, maxRepairs: 3 },
    { name: '金剑', type: 'weapon', price: 200, category: '武器', subCategory: '近战武器', material: '金', durability: 300, maxDurability: 300, repairable: true, maxRepairs: 3 },
    
    // 防具类
    { name: '皮头盔', type: 'tool', price: 40, category: '防具', subCategory: 'helmet', material: '皮革', durability: 100, maxDurability: 100, repairable: true, maxRepairs: 2 },
    { name: '铁头盔', type: 'tool', price: 65, category: '防具', subCategory: 'helmet', material: '铁', durability: 180, maxDurability: 180, repairable: true, maxRepairs: 3 },
    { name: '皮甲', type: 'tool', price: 80, category: '防具', subCategory: 'armor', material: '皮革', durability: 120, maxDurability: 120, repairable: true, maxRepairs: 2 },
    { name: '极铁甲', type: 'tool', price: 120, category: '防具', subCategory: 'armor', material: '铁', durability: 200, maxDurability: 200, repairable: true, maxRepairs: 3 },
    { name极: '皮护腿', type: 'tool', price: 35, category: '防具', subCategory: 'leggings', material: '皮革', durability: 90, maxDurability: 90, repairable: true, maxRepairs: 2 },
    { name: '铁护腿', type: 'tool', price: 55, category: '防具', subCategory: 'leggings', material: '铁', durability: 160, maxDurability: 160, repairable: true, maxRepairs: 3 },
    { name: '皮靴', type: 'tool', price: 极30, category: '防具', subCategory: 'boots', material: '皮革', durability: 80, maxDurability: 80, repairable: true, maxRepairs: 2 },
    { name: '铁靴', type: 'tool', price: 50, category: '防具', subCategory: 'boots', material: '铁', durability: 150, maxDurability: 150, repairable: true, maxRepairs: 3 },
    
    // 器具类
    // 农用器具
    { name: '铁锄头', type: 'tool', price: 45, category: '器具', subCategory: '农用器具', material: '铁', durability: 150, maxDurability: 150, repairable: true, maxRepairs: 3 },
    { name: '铜锄头', type: 'tool', price: 38, category: '器具', subCategory: '农用器具', material: '铜', durability: 120, maxDurability: 120, repairable: true, maxRepairs: 3 },
    { name: '铁镰刀', type: 'tool', price: 40, category: '器具', subCategory: '农用器具', material: '铁', durability: 140, maxDurability: 140, repairable: true, maxRepairs: 3 },
    { name: '铜镰刀', type: 'tool', price: 35, category: '器具', subCategory: '农用器具', material: '铜', durability: 110, maxDurability: 110, repairable: true, maxRepairs: 3 },
    
    // 食用器具
    { name: '铁锅', type: 'tool', price: 55, category: '器具', subCategory: '食用器具', material: '铁', durability: 200, maxDurability: 200, repairable: true, maxRepairs: 3 },
    { name: '铜锅', type: 'tool', price: 48, category: '器具', subCategory: '食用器具', material: '铜', durability: 180, maxDurability: 180, repairable: true, maxRepairs: 3 },
    { name: '铁碗', type: 'tool', price: 20, category: '器具', subCategory: '食用器具', material: '铁', durability: 100, maxDurability: 100, repairable: true, maxRepairs: 2 },
    { name: '铜碗', type: 'tool', price: 25, category: '器具', subCategory: '食用器具', material: '铜', durability: 120, maxDurability: 120, repairable: true, maxRepairs: 2 },
    { name: '木碗', type: 'tool', price: 8, category: '器具', subCategory: '食用器具', material: '木材', durability: 60, maxDurability: 60, repairable: false, maxRepairs: 0 },
    
    // 钓鱼用具
    { name: '竹鱼竿', type: 'tool', price: 30, category: '器具', subCategory: '钓鱼用具', material: '木材', durability: 80, maxDurability: 80, repairable: true, maxRepairs: 2 },
    { name: '铁鱼钩', type: 'tool', price: 15, category: '器具', subCategory: '钓鱼用具', material: '铁', durability: 50, maxDurability: 50, repairable: true, maxRepairs: 3 },
    { name: '铜鱼钩', type: 'tool', price: 12, category: '器具', subCategory: '钓鱼用具', material: '铜', durability: 40, maxDurability: 40, repairable: true, maxRepairs: 3 },
    { name: '鱼线', type: 'tool', price: 10, category: '器具', subCategory: '钓鱼用具', material: '纤维', durability: 30, maxDurability: 30, repairable: false, maxRepairs: 0 },
    
    // 石制品
    { name: '石斧', type: 'tool', price: 25, category: '器具', subCategory: '石制工具', material极: '石材', durability: 70, maxDurability: 70, repairable: false, maxRepairs: 0 },
    { name: '石锄', type: 'tool', price: 20, category: '器具', subCategory: '石制工具', material: '石材', durability: 60, maxDurability: 60, repairable: false, maxRepairs: 0 },
    { name: '石刀', type: 'tool', price: 18, category: '器具', subCategory: '石制工具', material: '石材', durability: 50, maxDurability: 50, repairable: false, maxRepairs: 0 },
    { name: '石磨', type: 'tool', price: 80, category: '器具', subCategory: '石制工具', material: '石材', durability: 300, maxDurability: 300, repairable: true, maxRepairs: 5 },
    
    // 皮革制品
    { name: '皮包', type: 'tool', price: 35, category: '器具', subCategory: '皮革制品', material: '皮革', durability: 90, maxDurability: 90, repairable: true, maxRepairs: 2 },
    { name: '皮水袋', type: 'tool', price: 28, category: '器具', subCategory: '皮革制品', material: '皮革', durability: 80, maxDurability: 80, repairable: true, maxRepairs: 2 },
    { name: '皮手套', type: 'tool', price: 22, category: '器具', subCategory: '皮革制品', material: '皮革', durability: 70, maxDurability: 70, repairable: true, maxRepairs: 2 },
    
    // 其他工具
    { name: '法杖', type: 'weapon', price: 100, category: '武器', subCategory: '魔法武器', material: '木材', durability: 150, maxDurability: 150, repairable: true, maxRepairs: 2 },
    { name: '治疗药水', type: 'tool', price: 35, category: '器具', subCategory: '药剂', material: '玻璃', durability: 1, maxDurability: 1, repairable: false, maxRepairs: 0 },
    { name: '银饰', type: 'tool', price: 120, category: '器具', subCategory: '装饰品', material: '银', durability: 100, maxDurability: 100, repairable: true, maxRepairs: 2 },
    { name: '金饰', type: 'tool', price: 200, category: '器具', subCategory: '装饰品', material: '金', durability: 120, maxDurability: 120, repairable: true, maxRepairs: 2 }
];